<?php
require 'Home/Model/Model.php';
	class ShowModel extends Model{
		function __Construct(){
			parent::__Construct();
		}
		function getNews($data){
			//var_dump($data);
            $nid=$data;
			$sql = "select * from news where nid=".$nid;
			//echo $sql;
		    $data = $this->conn->query($sql);
			return $data;
		}
		function getNewsType($data){ 
			//var_dump($data);
            $ntid=$data;
			$sql = "select * from newstype where ntid=".$ntid;
			//echo $sql;m

		    $data = $this->conn->query($sql);
			return $data;
		}
		
	}
?>